package com.kuang.method;

public class Demo02 {
    public static void main(String[] args) {
        int c=max(2,24);
        System.out.println(c);
    }

    //比大小
    public  static  int max(int a,int b){
        if(a==b){
            System.out.println("a==b");
            return 0;
        }
        else if (a>b)
            return a;
        else
            return b;
    }
}
